package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Warehuose;
import com.itgaoshu.hospitalproject.mapper.WarehuoseMapper;
import com.itgaoshu.hospitalproject.service.WarehuoseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class WarehuoseServiceImpl implements WarehuoseService {
    @Autowired
    private WarehuoseMapper warehuoseMapper;
    @Override
    public List<Warehuose> findAllWarehuose(String supplierName) {
        return warehuoseMapper.findAllWarehuose(supplierName);
    }

    @Override
    public int addWarehuose(Warehuose warehuose) {
        return warehuoseMapper.addWarehuose(warehuose);
    }

    @Override
    public int count(Warehuose warehuose) {
        return warehuoseMapper.count(warehuose);
    }
}
